Skip to content

Conversation

@jurgensvb
Copy link

ActiveRecord can be used standalone without the full Rails stack, so tying version checks to Rails would unnecessarily restrict usage. By relying on ActiveRecord’s version, we ensure compatibility in non-Rails environments while still aligning with the underlying ORM that the gem depends on.

Replace rails_below? method with active_record_below? for runtime support outside of a Rails application.
Use ActiveRecord.gem_version instead of Rails.gem_version for runtime support outside of a Rails application
@jurgensvb
Copy link
Author

@danielmorrison Thanks for the approval. Please merge and do a version bump when you are ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants